@use "variable";
.layout{
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    display: flex;
    background-color: variable.$backgroundColor;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;

    .sidebar_container{
        width: variable.$sidebarWidth;
        height: 100%;
        border-radius: variable.$radius;
        margin-right: 15px;
        overflow: hidden;
        transition: width 0.5s;
        flex-shrink: 0;

        &.is_collapse{
            width: 56px;
        }

        .sidebar_header{
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: variable.$headerHeight;
            padding: 0 20px;
            font-size: 18px;
            color: #ffffff;
            background-color: var(--el-color-primary);
            margin-bottom: 15px;

            .logo{
                white-space: nowrap;
                overflow: hidden;
            }

            .collapse_bar{
                cursor: pointer;
            }

        }

        .menus{
            background-color: variable.$containerBackgroundColor;
            .icon{
                margin-right: 10px;
            }
            .el-menu{
                border: none;
            }
        }

    }


    .main_container{
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        height: 100%;

        .main_header{
            height: variable.$headerHeight;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-shrink: 0;


            .navbar{
                background-color: variable.$containerBackgroundColor;
                border-radius: variable.$radius*2;
                height: variable.$headerHeight;
                padding: 0 10px;
                display: flex;
                justify-content: center;
                align-items: center;
                width: 280px;
                flex-shrink: 0;

                .header_navbar_icon {
                    width: 1.3em;
                    height: 1.5em;
                }

                .navbar_item{
                    width: 60px;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    cursor: pointer;
                }
            }

            .nav_tabs{
                display: flex;
                flex: 1;
                //overflow: hidden;
                min-width: 0;
            }
        }

        .main_body{
            position: relative;
            flex: 1;
            min-height: 0;
            border-radius: 8px;
            overflow: hidden;
            box-sizing: border-box;
        }
    }

}

